﻿@page "/test/cleanup-stats"
@layout EmptyLayout
@inherits MainBase

<input type="hidden" id="soft-deleted-credential-count" value="@SoftDeletedCredentialCount" />

@code {
    private int SoftDeletedCredentialCount { get; set; }

    /// <inheritdoc />
    protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();

        var context = await DbService.GetDbContextAsync();
        SoftDeletedCredentialCount = await context.Credentials.CountAsync(c => c.IsDeleted);
    }
}
